﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 新闻
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Init(Object sender,EventArgs e)
        {
            if (!IsPostBack)
            {
                ContentBox.Text = "请输入新闻内容";
                DropDownList1.Items.Add("新华社");
                DropDownList1.Items.Add("人民日报");
                DropDownList1.Items.Add("新浪新闻");
            }
            
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            
            
        }

        protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
           
           
        }

        protected void Upload_Click(object sender, EventArgs e)
        {
            Result.Text = "此新闻来自 "+DropDownList1.Text+" 谢谢您提交的新闻";
            Time.Text = (DateTime.Now).ToString();
        }

        protected void Reset_Click(object sender, EventArgs e)
        {
            
            ContentBox.Text = "";
            Page_Init(sender, e);
        }

        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}